//无限体力插件

string author = "Live";
string pluginName = "InfiniteStamina 无限体力";
string version = "1.0";

// 插件初始化
void OnPluginInit()
{
	// 设置插件信息
	PluginData::SetAuthor(author);
	PluginData::SetName(pluginName);
	PluginData::SetVersion(version);

	// 提示
	ThePresident.InfoFeed("插件:"+pluginName+"| 版本:"+version+"| 作者:"+author,false);
	
	ThePresident_OnMapStart();
    
}


void ThePresident_OnMapStart(){

	ThePresident_OnRoundStart();
	
}

void ThePresident_OnRoundStart()
{

	// 拿命令
    CASConVarRef@ infiniteAmmo = ConVar::Find( "sv_infinite_stamina" );
	// 开启无限体力
    infiniteAmmo.SetValue( "1" );

}

void OnPluginUnload()
{
	// 拿命令
    CASConVarRef@ infiniteAmmo = ConVar::Find( "sv_infinite_stamina" );
	// 开启无限子弹
    infiniteAmmo.SetValue( "0" );
}